var zoom=require('zoom'); 
cc.Class({ 
    extends: zoom,
    properties: {
        bigview:{
            default:null,
            type:cc.Node
        },
        content:{
            default:null,
            type:cc.Sprite
        },
        main:{
            default:null,
            type:cc.Component
        }
    },
   

    // use this for initialization
    doubleclick:function(event){
        //cc.log(event);
        //cc.log(this.main.getComponent('book'));
        //cc.log(this.main.status);
        if(this.main.getComponent('book').status===0){
        //this.content.spriteFrame.setTexture(this.getComponent(cc.Sprite).spriteFrame.getTexture());
        this.content.spriteFrame=this.getComponent(cc.Sprite).spriteFrame;
        this.bigview.active=true;
       // cc.log(this.main);
        }
    }

    // called every frame, uncomment this function to activate update callback
    // update: function (dt) {

    // },
});
